<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改教师管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-tea-edit" th:object="${SysUser}">
            <input name="userId" th:field="*{userId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">姓名：</label>
                <div class="col-sm-8">
                    <input name="userName" th:field="*{userName}" class="form-control" type="text" required disabled>
                </div>
            </div>
            <div class="form-group" >
                <label class="col-sm-3 control-label">职称：</label>
                <div class="col-sm-8">
                    <select name="teaTitle" class="form-control m-b" th:with="type=${@dict.getType('sys_tea_title')}" >
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{teaTitle}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group" >
                <label class="col-sm-3 control-label">面试分组：</label>
                <div class="col-sm-8">
                    <select name="groupInterviewId" class="form-control m-b" th:with="type=${@dict.getType('sys_interv_group')}" >
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{groupInterviewId}"></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var tea =[[${tea}]];
        var prefix = ctx + "system/tea";
        $("#form-tea-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/interviewTeaEdit", $('#form-tea-edit').serialize());
            }
        }
    </script>
</body>
</html>
